package com.dianping.cat.home.resource.entity;

import com.dianping.cat.home.resource.BaseEntity;
import com.dianping.cat.home.resource.IVisitor;
import java.util.ArrayList;
import java.util.List;

public class ResourceConfig
  extends BaseEntity<ResourceConfig> {
/* 10 */   private List<Resource> m_resources = new ArrayList();






/* 17 */   public void accept(IVisitor visitor) { visitor.visitResourceConfig(this); }


  public ResourceConfig addResource(Resource resource) {
/* 21 */     this.m_resources.add(resource);
/* 22 */     return this;
  }


  public boolean equals(Object obj) {
/* 27 */     if (obj instanceof ResourceConfig) {
/* 28 */       ResourceConfig _o = (ResourceConfig)obj;

/* 30 */       if (!equals(getResources(), _o.getResources())) {
/* 31 */         return false;
      }


/* 35 */       return true;
    }

/* 38 */     return false;
  }


/* 42 */   public List<Resource> getResources() { return this.m_resources; }



  public int hashCode() {
/* 47 */     int hash = 0;

/* 49 */     for (Resource e : this.m_resources) {
/* 50 */       hash = hash * 31 + ((e == null) ? 0 : e.hashCode());
    }


/* 54 */     return hash;
  }

  public void mergeAttributes(ResourceConfig other) {}
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/resource/entity/ResourceConfig.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */